import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/visit-subPackageDrug/list',
    method: 'get',
    params
  })
}

export function getInspectionByVisitId(params) {
  return request({
    url: '/visit-subPackageDrug/get-visit-subPackageDrug-detail',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: '/visit/add-visit-package-drug',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/visit-subPackageDrug/edit',
    method: 'put',
    data
  })
}

export function del(data) {
  return request({
    url: '/visit-subPackageDrug/'+data,
    method: 'delete',
    data
  })
}